package org.zjt.auth.MQ.rabbitmq;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQMsgSender {
	@Autowired
	private RabbitTemplate rabbitTemplate;
	
	public void sendMsg(String context){
		rabbitTemplate.convertAndSend("rabbitmq-test", context);
	}
}
